package com.jic.member.service.eventHandler;

import com.alibaba.fastjson.JSONObject;
import com.jic.common.base.tuple.Tuple;
import com.jic.member.entity.model.EventListenerContent;

import java.util.function.Predicate;

/**
 * description: EventHander
 * date: 2020/6/8 11:24
 * author: wangys
 * version: 1.0
 */
public interface EventHander {

    String getEventCode();

    Tuple<Boolean, String> validateParam(EventListenerContent content, Long branchNodeId);

    Predicate<JSONObject> preValidateParam();
}
